package com.evil.common.application.dto.process.node.gateway;

import com.evil.common.application.dto.judge.JudgeOr;
import lombok.Data;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * 网关配置
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class GatewayConfigDTO {

    /**
     * 或条件列表
     */
    @Valid
    private List<JudgeOr> judgeOr;

    /**
     * 条件是否反转
     */
    private Boolean negation;

    public GatewayConfigDTO() {
        this.judgeOr = new ArrayList<>();
        this.negation = false;
    }
}
